<%@ Page Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Core.DAL.tSite_New>" %>

<asp:Content ID="cHead" ContentPlaceHolderID="cphHead" runat="server">
    <% this.Page.Title = (string)ViewData["PageTitle"]; %>
</asp:Content>

<asp:Content ID="cJScripts" ContentPlaceHolderID="cphJScripts" runat="server">
    <script type="text/javascript">
        $(function() {
            $('#text').wysiwyg();
            
            $("a.green").colorbox({ width: "400px", height: "200px", iframe: true, title: "Confirmation" });

            $("a.blue").click(function () {
                $('#adminForm form')[0].reset();
            });
        });
    </script>
</asp:Content>

<asp:Content ID="cMainContent" ContentPlaceHolderID="cphMainContent" runat="server">
<div id="adminForm">
    <%= Html.ValidationSummary(ScoutNET.Resources.Master_Form_ErrorMessage)%>

    <% using (Html.BeginForm()) {%>
        <p>
            <label for="title">Titre :</label>
            <%= Html.TextBox("title", null, new { @class = "small" })%>
        </p>
        <p>
            <label for="text">News :</label>
            <%= Html.TextArea("text", new { style = "width: 510px; height:150px; margin-left:150px" })%>
        </p>
           
        <div class="blockButton">
		    <a class="mediumBtn green awesome" href="/<%= (string)ViewData["SystemName"] %>/News/Confirm" title="<%= ScoutNET.Resources.Master_Button_Submit %>"><%= ScoutNET.Resources.Master_Button_Submit %></a>
            <a class="mediumBtn blue awesome" href="javascript:void(0);" title="<%= ScoutNET.Resources.Master_Button_Reset %>"><%= ScoutNET.Resources.Master_Button_Reset %></a>
	    </div>
    <% } %>
</div>
</asp:Content>

<asp:Content ID="cAdminMenu" ContentPlaceHolderID="cphAdminMenu" runat="server">
    <% if ((UserType)ViewData["UserType"] != UserType.User) {  %>
    <ul id="adminMenu">
        <li class="create"><%= Html.ActionLink(ScoutNET.Resources.News_Index_CreateLink, "Create", new { controller = "News", systemName = (string)ViewData["SystemName"] })%></li>
    </ul>
    <% } %>
</asp:Content>


